package chp13;

public class Test7 {
    public static void main(String[] args) {
        //indexOf
        String content = "今天星期六,明天星期天";
        int index = content.indexOf("星");
        System.out.println(index);
        //从某一位开始寻找
        index = content.indexOf("星期",3);
        System.out.println(index);
    }
}
